home *** CD-ROM | disk | FTP | other *** search
/ BMUG PD-ROM BV3 / BMUG PD-ROM Version BV3 (CDRM1097900).iso / HyperCard / Games / The Golden Parrot / card_4086.txt < prev    next >
Text File  |  1990-08-20  |  1KB  |  49 lines

  1. -- card: 4086 from stack: in
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 3426
  5. -- name: Right fork
  6. ----- HyperTalk script -----
  7. on openCard
  8.   global score
  9.   subtract 5 from score
  10.   if score <= 0 then
  11.     visual effect scroll up
  12.     go card "end"
  13.   end if
  14.   put score into field "scorebox"
  15. end openCard
  16. on mouseUp
  17.  
  18.   get field "textarea" of card "Mountain Trail"
  19.   put it&return&"Rope bridge crossing" into field "textarea" of card "Mountain Trail"
  20.  
  21.   get field "textarea" of card "River Trail"
  22.   put it into holder
  23.   put the number of lines in field "textarea" of card "River Trail" into counter
  24.   repeat until counter = 0
  25.     get line counter of holder
  26.     if it contains "Left fork" then
  27.       delete line counter of field "textarea" of card "River Trail"
  28.       put 1 into counter
  29.     end if
  30.     subtract 1 from counter
  31.   end repeat
  32.  
  33.   visual effect dissolve
  34.   go to card "River Trail"
  35.  
  36. end mouseUp
  37.  
  38.  
  39. -- part contents for background part 1
  40. ----- text -----
  41. Right fork
  42.  
  43. -- part contents for background part 2
  44. ----- text -----
  45. Following this branch of the river brings you to the foot of a beautiful waterfall that tumbles down from very rugged heights. You can see no way to reach the top of the waterfall.
  46.  
  47. -- part contents for background part 5
  48. ----- text -----
  49. 25